﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace Unis.FMS.Platform.Order.Domain {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "doc_dpt_location_collection", DisableSyncStructure = true)]
	public partial class DocDptLocationCollection {

		[JsonProperty, Column(Name = "id", DbType = "bigint", IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// 实际创建时间
		/// </summary>
		[JsonProperty, Column(Name = "actual_create_time", DbType = "datetime")]
		public DateTime ActualCreateTime { get; set; }

		/// <summary>
		/// 实际修改时间
		/// </summary>
		[JsonProperty, Column(Name = "actual_update_time", DbType = "datetime")]
		public DateTime ActualUpdateTime { get; set; }

		/// <summary>
		/// 批次号
		/// </summary>
		[JsonProperty, Column(Name = "batch_no", StringLength = 100, IsNullable = false)]
		public string BatchNo { get; set; }

		/// <summary>
		/// 创建用户名称
		/// </summary>
		[JsonProperty, Column(Name = "create_user", StringLength = 100, IsNullable = false)]
		public string CreateUser { get; set; }

		/// <summary>
		/// 创建用户Id
		/// </summary>
		[JsonProperty, Column(Name = "created_by", DbType = "bigint")]
		public long CreatedBy { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		[JsonProperty, Column(Name = "created_time", DbType = "datetime")]
		public DateTime CreatedTime { get; set; }

		/// <summary>
		/// 司机Id
		/// </summary>
		[JsonProperty, Column(Name = "driver_id", DbType = "bigint")]
		public long DriverId { get; set; }

		/// <summary>
		/// 是否删除 0未删除 1已删除
		/// </summary>
		[JsonProperty, Column(Name = "is_del", DbType = "int")]
		public int IsDel { get; set; } = 0;

		/// <summary>
		/// 坐标纬度
		/// </summary>
		[JsonProperty, Column(Name = "latitude", StringLength = 100, IsNullable = false)]
		public string Latitude { get; set; }

		/// <summary>
		/// 实际app收集时间
		/// </summary>
		[JsonProperty, Column(Name = "local_time_app", DbType = "datetime")]
		public DateTime LocalTimeApp { get; set; }

		/// <summary>
		/// 坐标精度
		/// </summary>
		[JsonProperty, Column(Name = "longitude", StringLength = 100, IsNullable = false)]
		public string Longitude { get; set; }

		/// <summary>
		/// 备注信息
		/// </summary>
		[JsonProperty, Column(Name = "notes", IsNullable = false)]
		public string Notes { get; set; }

		/// <summary>
		/// 状态
		/// </summary>
		[JsonProperty, Column(Name = "status", DbType = "int")]
		public int Status { get; set; } = 1;

		/// <summary>
		/// trip key
		/// </summary>
		[JsonProperty, Column(Name = "trip_no", DbType = "bigint")]
		public long TripNo { get; set; } = 0;

		/// <summary>
		/// 修改人用户Id
		/// </summary>
		[JsonProperty, Column(Name = "update_by", DbType = "bigint")]
		public long UpdateBy { get; set; }

		/// <summary>
		/// 修改时间
		/// </summary>
		[JsonProperty, Column(Name = "update_time", DbType = "datetime")]
		public DateTime UpdateTime { get; set; }

		/// <summary>
		/// 修改人名称
		/// </summary>
		[JsonProperty, Column(Name = "update_user", StringLength = 100, IsNullable = false)]
		public string UpdateUser { get; set; }

		/// <summary>
		/// 用户Id
		/// </summary>
		[JsonProperty, Column(Name = "user_id", DbType = "bigint")]
		public long UserId { get; set; }

	}

}
